package net.zjitc.arrays;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
         //集合
        List<String> list = new ArrayList();
        //List<String> list = new LinkedList<>();
        list.add("a");
        list.add(null);
        list.add(3,"b");

     /*   list.add(0,"c");//插入
        list.remove("a");// c b
        list.remove(0);//b
        list.add("d");//b d
        list.set(0,"e"); //e d
        String s = list.get(0); //e
        int size = list.size();//2*/

        System.out.println();
    }
    public int getMax(int a,int b){
        if (a>b){
            return a;
        }
            return b;

    }
}
